package com.wondersgroup.framework.sample.component.grid.util;

import java.util.ArrayList;
import java.util.List;

public class IdGenerator
{
  static final List<Integer> ID = new ArrayList();

  public static int nextID()
  {
    int id = ((Integer)ID.get(0)).intValue() + 1;

    ID.set(0, Integer.valueOf(id));

    return id;
  }

  static
  {
    ID.add(Integer.valueOf(1001));
  }
}